package prototype.persistence.hibernate;

import java.util.List;
import java.sql.Timestamp;

import prototype.persistence.pojo.Position;
import prototype.persistence.PositionDAO;

import org.hibernate.criterion.Restrictions;

/**
 * <p>Hibernate DAO layer for Positions</p>
 * <p>Generated at Sun Jan 03 13:49:53 EET 2010</p>
 *
 * @author Salto-db Generator v1.0.16 / Pojos + Hibernate mapping + Generic DAO
 * @see http://www.hibernate.org/328.html
 */
public class PositionHibernateDAO extends
		AbstractHibernateDAO<Position, Integer> implements
		PositionDAO {

	/**
	 * Find Position by x
	 */
	public List<Position> findByX(Integer x) {
		return findByCriteria(Restrictions.eq("x", x));
	}
	
	/**
	 * Find Position by y
	 */
	public List<Position> findByY(Integer y) {
		return findByCriteria(Restrictions.eq("y", y));
	}
	
	/**
	 * Find Position by z
	 */
	public List<Position> findByZ(Integer z) {
		return findByCriteria(Restrictions.eq("z", z));
	}
	

}
